// #include "./include/car.h"
#include "./src/car_parts/agx.cpp"
#include "./src/car_parts/baseplate.cpp"
#include "./src/car_parts/binocularcamera.cpp"
#include "./src/car_parts/ladar.cpp"
#include "./src/car_parts/gyroscope.cpp"
#include "./src/car_parts/lcd.cpp"
#include "./src/car_parts/battery.cpp"
#include "./src/car.cpp"
#include "./src/student.cpp"
#include "./src/singleton.cpp"

#include "./include/singleton.h"

int main(){
    CarAllocationSystem &system = CarAllocationSystem::getInstance();
    // 小车信息初始化
    system.car_init();
    // 学生信息初始化
    system.stu_init();
    // 分配小车
    system.allocate();
    // 写入文件
    system.write();
    // 信息展示
    system.read();

    // system.test();

    // std::cout << "-------------------------------\n";
    // // 再生成一个system2实例，可以发现，其实和system是同一个实例
    // CarAllocationSystem &system2 = CarAllocationSystem::getInstance();
    // system2.test();
    // std::cout << (&system == &system2); // 输出为1
}